package com.example.mybatisplus.model.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yfy
 * @since 2022-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "HouseDetail对象", description = "")
public class HouseDetail extends Model<HouseDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Float area;

    private BigDecimal price;

    private Integer maxIn;

    private Integer remainRoom;

    private Integer breakfast;

    private Integer shower;

    private Integer inOrNot;

    private Integer wifi;
    @TableField("photo_1")
    private String photo1;
    @TableField("photo_2")
    private String photo2;
    @TableField("photo_3")
    private String photo3;

    private Long orId;

    private Long houId;

    private Long outId;

    private Long oId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
